SELECT COALESCE(NULLIF(SomeColumn,''), ReplacementColumn) FROM SomeTable
IF ISNULL(@param) OR @param = '' THEN doSomething...